<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script language="JavaScript">
	function add(id) {
		alert('add id:'+id);
	}
	
	function deleteData(id) {
		alert('remove id:'+id);
	}
</script>
</head>
<body>
	<table>
		<tr>
			<th>Column1</th>
			<th>Column2</th>
			<th>Column3</th>
			<th>Action</th>
		</tr>
		<s:iterator value="larryList">
		<tr>
			<td><s:property value='id'/></td>
			<td><s:property value='name'/></td>
			<td><s:property value='age'/></td>
			<td><input type='button' value='Add' onclick="add(<s:property value='id'/>)"><input type='button' value='Delete' onclick="deleteData(<s:property value='id'/>)"></td>
		</tr>
		</s:iterator>
	</table>
</body>
</html>